/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-10-12 11:12:59
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-02-01 14:21:02
 * @FilePath: \ZHGD-Vue2\src\api\bitumenMixingStation\matchingManage\screenTest.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'


// 沥青拌合楼
export function sysStationList(query) {
    return request({
        // url: '/zhgd/sysStation/list',
        url: '/zhgd/sysStation/listSelect',
        method: 'get',
        params: query
    })
}

// 列表查询
export function asphaltMatch(query) {
    return request({
        url: '/zhgd/asphaltMatch/page',
        method: 'get',
        params: query
    })
}

// 用料项目
export function materielProject(query) {
    return request({
        url: '/zhgd/materielProject/list',
        method: 'get',
        params: query
    })
}


// 配方编号
export function getInitMatchCode(query) {
    return request({
        url: '/zhgd/asphaltData/getInitMatchCode',
        method: 'get',
        params: query
    })
}


// 新增修改时配方名称Select
export function asphaltMatchName(query) {
    return request({
        url: '/zhgd/asphaltMatchName/listSelect',
        method: 'get',
        params: query
    })
}


// 详情列表查询
export function cementMatchInfo(query) {
    return request({
        url: '/zhgd/cementMatch/info',
        method: 'get',
        params: query
    })
}



/**
 * 获取热料筛分级配
 * @param {*} matchId 配比主键 
 * @returns  热料筛分级配
 */
export function getHotList(matchId) {
    return request({
      url: '/zhgd/asphaltMatchHot/list/' + matchId,
      method: 'get'
    });
  }
  
  /**
   * 添加热料筛分级配
   * @param {*} matchId 配比主键 
   * @param {*} data 级配数据
   * @returns  添加结果
   */
  export function saveHot(matchId, data) {
    return request({
      url: '/zhgd/asphaltMatchHot/save/' + matchId,
      method: 'post',
      data: data
    });
  }
  
  /**
   * 获取冷料配比
   * @param {*} matchId 配方主键
   * @returns 冷料配比
   */
  export function getCold(matchId) {
    return request({
      url: '/zhgd/asphaltMatchCold/find/' + matchId,
      method: 'get'
    });
  }
  
  /**
   * 添加冷料配比
   * @param {*} data  冷料配比
   * @returns 添加结果
   */
  export function saveCold(data) {
    return request({
      url: '/zhgd/asphaltMatchCold/save',
      method: 'post',
      data: data
    });
  }
  
  /**
   * 根据级配类型获取生产配比
   * @param {*} data
   * @returns
   */
   export function getMatchCode (data) {
    return request({
      url: '/zhgd/asphaltData/getMatchCode?type=' + data,
      method: 'get'
    })
  }
  













